#include <iostream>
#include <cstdlib>
using namespace std;

static int number_of_rectangular(int rows, int columns) {
    int r = 0;
    for (int i = 1; i <= rows; ++i) {
        for (int j = 1; j <= columns; ++j) {
            r += (rows - i + 1) * (columns - j + 1);
        }
    }
    return r;
}

int main() {
    constexpr int target = 200'0000;
    unsigned m = static_cast<unsigned>(0.05 * target);
    int x = 0;
    int y = 0;
    for (int i = 10; i < 100; ++i) {
        for (int j = i; j < 100; ++j) {
            // int number = number_of_rectangular(i, j);
            int number = (i + 1) * i / 2 * (j + 1) * j / 2;
            unsigned n = abs(number - target);
            if (n < m) {
                m = n;
                x = i;
                y = j;
                cout << "Number of rectangulars: " << number << endl;
            }
        }
    }
    cout << "area: " << x << 'x' << y << " = " << x * y << endl;
}